/**
 * User: 蕨菜
 * Date: 2019-05-15
 * Time: 15:51
 * Description: 此文件简要说明
 */


module.exports = function (sequelize, dataTypes) {
    return sequelize.define('class', {
        id: {
            type: dataTypes.BIGINT(11),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true,
            unique: true,
            comment: '班级id',
        },
        name: {
            type: dataTypes.STRING,
            allowNull: false,
            comment: '班级名'
        },
        active: {
            type: dataTypes.BOOLEAN,
            allowNull: false,
            comment: '是否处于激活状态'
        }
    })
}